let uname = document.querySelector(".uname");
let session = document.querySelector(".session")


ajax("http://newshopapi.0melon0.cn/api/f_user/bookday", {
        "token": `${sessionStorage.getItem("token")}`,
        "day_time": sessionStorage.getItem("day_time"),
        "show_id": sessionStorage.getItem("show_id")
    },
    "POST").then(res => {

    console.log(res);


    // 渲染用户名
    uname.innerHTML = `<p style="margin:0;padding:0"><span>姓名：</span><span>${res.result.name}</span></p>`;

    session.innerHTML = `<p style="margin:0;padding:0"><span>时间：</span><span>${res.result.day_time}</span></p>`;

    console.log(sessionStorage.getItem("show_id"));
    // 获取二维码
    ajax("http://newshopapi.0melon0.cn/api/f_user/Qrcode", {
        "token": sessionStorage.getItem("token"),
        "id": res.result.id,
    }, "GET").then(re => {

    })
})